namespace WFTest.Entity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class cost_sheet
    {
        [StringLength(20)]
        public string onumber { get; set; }

        [StringLength(20)]
        public string doc_number { get; set; }

        [StringLength(50)]
        public string product { get; set; }

        [StringLength(20)]
        public string dept { get; set; }

        [StringLength(20)]
        public string period { get; set; }

        [StringLength(20)]
        public string doc_type { get; set; }

        [StringLength(20)]
        public string pi { get; set; }

        [StringLength(50)]
        public string code { get; set; }

        [StringLength(255)]
        public string pr_name { get; set; }

        [StringLength(255)]
        public string spec { get; set; }

        [StringLength(10)]
        public string unit { get; set; }

        public int? qty { get; set; }

        public decimal? un_material { get; set; }

        public decimal? un_people { get; set; }

        public decimal? un_manu { get; set; }

        public decimal? un_cost { get; set; }

        public decimal? co_material { get; set; }

        public decimal? co_people { get; set; }

        public decimal? co_labor { get; set; }

        public decimal? co_manu { get; set; }

        public decimal? co_amount { get; set; }

        [StringLength(20)]
        public string source { get; set; }

        public decimal? price { get; set; }

        public decimal? output { get; set; }

        public decimal? income { get; set; }

        public decimal? profit { get; set; }

        public decimal? pmargin { get; set; }

        public decimal? gross_profit { get; set; }

        public decimal? gmargin { get; set; }

        public decimal? oper { get; set; }

        public decimal? omargin { get; set; }

        public DateTime? creat_time { get; set; }

        [StringLength(50)]
        public string id { get; set; }

        [StringLength(50)]
        public string sales { get; set; }

        [StringLength(255)]
        public string cost_name { get; set; }
    }
}
